package com.chuan.it_market.dao;

import com.chuan.it_market.pojo.entity.Seller;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface SellerDao {
    int deleteByPrimaryKey(Integer sno);

    int insert(Seller record);

    int insertSelective(Seller record);

    Seller selectByPrimaryKey(Integer sno);

    int updateByPrimaryKeySelective(Seller record);

    int updateByPrimaryKey(Seller record);

    Seller selectByPhoneAndPassowrd(@Param("phone") String phone, @Param("password") String password);

    Seller selectSellerByPhone(@Param("phone") String phone);

    void updatePasswordBysno(@Param("sno") Integer sno, @Param("newPassword") String newPassword);

}